package com.robotserver.orders.service;

import com.robotserver.orders.entity.TbOrders;
import com.robotserver.orders.param.TbOrderSyncParam;
import com.robotserver.orders.param.biz.TbOrderPullParam;
import com.robotserver.orders.vo.biz.PageVO;
import com.taobao.api.response.TbkScOrderDetailsGetResponse;

import java.util.List;

/**
 * 淘宝支付订单同步
 * @author jianghan
 * @date 2019-11-08 10:06
 */
public interface TbOrderService {
    void syncOrder(TbOrderSyncParam tbOrderSyncParam);

    PageVO getOrderList(TbOrderPullParam param);

    PageVO getOrderListNew(TbOrderPullParam param);

    /**
     * 处理失效订单
     * @param orders
     */
    void invalid(List<TbOrders> orders);

    List<TbOrders> getByOrderId(String orderId);

    TbOrders getByParAndCliId(String parent_order_no, String child_order_no,Long createdt,String accessToken,String alimmUserId,String alimmUserName);

    void ordersDispose(List<TbkScOrderDetailsGetResponse.PublisherOrderDto> orders,String alimmUserId,String alimmUserName);

    /**
     * 生产者-往redis队列当中生产alimmTokens
     */
    void syncOrder_producer(TbOrderSyncParam tbOrderSyncParam);

    /**
     * 消费者-消费redis队列当中的alimmTokens
     */
    void syncOrder_consumer(TbOrderSyncParam tbOrderSyncParam);

    /**
     * 测试淘宝订单测试方法
     */
    void syncOrder_downTest(String token);



}
